home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48hor1
/
address.doc
< prev
next >
Wrap
Text File
|
1995-03-31
|
3KB
|
63 lines
(User.programs)
Item: 225 by _ciarn at hpcvbbs.UUCP
Author: [Dan Ciarniello]
Subj: ADDRESS V1.
Date: Sun Feb 10 1991
I've yet to see any programs written that make use of James Donnelly's Toolkit.
Here's an 'Address Book' program that I've written that does make use of it.
You must have the Tool and Data Browser Libraries installed on the 48 to use
this program.
This program allows one to view, add, delete, edit and search through an
electronic address 'book.' To use the program, load it into any directory and
press ADDRESS. Any variables that ADDRESS needs will be automatically created.
The keyboard is defined as given in the Toolkit manual on page 16 with the
following additions:
ADD - Add an entry to the directory. The program successively prompts for
Name, Street Address, City, Postal Code, Home Phone Number, and Work
Phone Number. An item may be skipped by pressing ENTER by itself.
However, if no name is entered, the ADD subroutine is terminated and the
program returns to the Data Browser.
DEL - Delete an entry from the directory. You are asked for confirmation
before being allowed to proceed. You must answer either YES or NO.
PREV - View the entry preceding the current entry. If the current entry is the
first one in the directory, then wrap around to the last one.
NEXT - View the entry following the current entry. If the current entry is the
last one in the directory, then wrap around to the first one.
FIND - Alternative to pressing the 'alpha' key for entering search mode.
EXIT - Exit the program saving any changes that have been made.
ENTER - Put the current entry on the stack as a list containing the following
items: { "First+Middle Name" "Last Name" "Street Address" "City]"
"Postal Code" "Home Phone" "Work Phone" }
ATTN - Exit he program discarding changes.
Names can be 1, 2, or 3 words in length. Names longer than three words are not
supported. One word names are treated as last names for sorting purposes.
Names are sorted by last name by default. If you want to sort by some other
item, then change the value of SVAR thus:
1 = first name
2 = last name
3 = street address
4 = city
5 = postal code
6 = home phone number
7 = work phone number
Data may be entered in either upper or lower case but name, address, and city
are changed to initial caps by default.
Note that this is a Canadian address book. Thus the program prompts for Postal
Code rather than Zip Code. If you want an American address book instead, just
change the appropriate lines in the program.
************************************************************************
Dan Ciarniello Dan_Ciarniello@cc.sfu.ca
Capilano College n1n8@cc.sfu.ca
North Vancouver, B. C. akcs.ciarn
"F=ma but you can't push a rope"